Ext.define('DragonApp.view.hero.Grid', {
    extend: 'Ext.grid.Panel',
    alias: ['widget.herogrid'],

    requires: [
        'DragonApp.store.JsonPHero'
    ],

    controller: 'hero',

    columns: [
        { text: 'ID', dataIndex: 'id', align: 'center', hideable: false, hidden: true },
        { text: '英雄', dataIndex: 'heroid', align: 'center', hideable: false },
        { text: '武器', dataIndex: 'weapon', align: 'center', hideable: false },
        { text: '衣服', dataIndex: 'costume', align: 'center', hideable: false },
        { text: '鞋子', dataIndex: 'shoes', align: 'center', hideable: false },
        { text: '饰品', dataIndex: 'decorations', align: 'center', hideable: false },
        { text: '技能1', dataIndex: 'skill1', align: 'center', hideable: false, renderer: 'lockStatusRender' },
        { text: '技能2', dataIndex: 'skill2', align: 'center', hideable: false, renderer: 'lockStatusRender' },
        { text: '技能3', dataIndex: 'skill3', align: 'center', hideable: false, renderer: 'lockStatusRender' },
        { text: '技能4', dataIndex: 'skill4', align: 'center', hideable: false, renderer: 'lockStatusRender' },
        { text: '技能5', dataIndex: 'skill5', align: 'center', hideable: false, renderer: 'lockStatusRender' },
        { text: '技能6', dataIndex: 'skill6', align: 'center', hideable: false, renderer: 'lockStatusRender' }
    ],
    store: {
        type: 'jsonPheroStore',
        storeId : 'jsonPheroStore'
    }
});